import React, { Component } from "react";
import {
	View,
	Text,
} from "react-native";
import { TabNavigator } from "react-navigation";

import WeiboContent from "../containers/WeiboContent";
import NewsContent from "../containers/NewsContent";
import FunnyContent from "../containers/FunnyContent";

const CustomBar = TabNavigator({
	weibo: {
		screen: WeiboContent,
	},
	news: {
		screen: NewsContent,
	},
	funny: {
		screen: FunnyContent,
	},
}, {
	tabBarPosition: "top",
	tabBarOptions: {
		style: {
			backgroundColor: gColor.bgColorOne,
			borderTopWidth: 1,
			borderTopColor: "#fff",
		},
		indicatorStyle: {
			backgroundColor: gColor.bordColorOne,
			width: 80,
			left: 23,
			height: 2,
		}
	},
})


export default CustomBar;